﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using XNAControls;

namespace BGSpaceShooter
{
    public class UserInterfaceDrawer : IDrawer
    {
        private List<XNAControl> userInterface;

        public UserInterfaceDrawer(List<XNAControl> userInterface)
        {
            this.userInterface = userInterface;
        }

        #region IDrawer Members

        public void Draw(Camera camera)
        {
            SpriteBatch spriteBatch = new SpriteBatch(Display.GraphicsDevice);
            spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied);
            foreach (XNAControl control in userInterface)
            {
                control.Draw(spriteBatch);
            }
            spriteBatch.End();
        }


        public IEnumerable<ParticleSystem.EffectDrawer> GetEffectDrawers()
        {
            return new List<ParticleSystem.EffectDrawer>();
        }

        #endregion
    }
}
